﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace StockTrader.FrontEnd.OrderTracker2010.Business
{
    public static class Parameters
    {
        public static string CNN = ConfigurationManager.ConnectionStrings["131"].ToString();
        public static string HnxMySQL = ConfigurationManager.ConnectionStrings["HnxMySQL"].ToString();

        public static string DBType = ConfigurationManager.AppSettings["DbType"].ToString();
        public static int ReadInterval = Convert.ToInt32(ConfigurationManager.AppSettings["ReadInterval"].ToString());
        public static int UIupdateInterval = Convert.ToInt32(ConfigurationManager.AppSettings["UIupdateInterval"].ToString());
        public static int CheckDuplicateInterval = Convert.ToInt32(ConfigurationManager.AppSettings["CheckDuplicateInterval"].ToString());
        public static bool GridAutoUpdate = ConfigurationManager.AppSettings["GridAutoUpdate"].ToString().Equals("true");
        public static int GridAutoUpdateInterval = Convert.ToInt32(ConfigurationManager.AppSettings["GridAutoUpdateInterval"].ToString());
    }
}
